package com.example.wac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 权限用户表
 * </p>
 *
 * @author wac
 * @since 2022-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_auth_user")
@ApiModel(value="AuthUser对象", description="权限用户表")
public class AuthUser extends Model<AuthUser> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限码")
    private String authCode;

    @ApiModelProperty(value = "权限名称")
    private String authName;

    @ApiModelProperty(value = "权限url")
    private String authUrl;

    @ApiModelProperty(value = "http请求方式:POST,PUT,DELETE,GET")
    private String authMethod;

    @ApiModelProperty(value = "父节点 当前表id")
    private Integer parentAuthId;

    @ApiModelProperty(value = "顺序")
    private Integer orderNo;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
